/**
 * Notes: 通知模型
 * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat)
 * Date: 2025-04-07 14:00:00 
 */


const BaseProjectModel = require('./base_project_model.js');

class NotificationModel extends BaseProjectModel {

	constructor() {
		super();

		this.setModel('oa_notification');
	}

	/**
	 * 通知状态
	 */
	static STATUS = {
		UNREAD: 'unread',
		READ: 'read',
		DELETED: 'deleted'
	}

	/**
	 * 通知重要性
	 */
	static IMPORTANCE = {
		LOW: 'low',
		NORMAL: 'normal',
		HIGH: 'high'
	}

	/**
	 * 通知类型
	 */
	static TYPE = {
		SYSTEM: 'system',
		APPROVAL: 'approval',
		TASK: 'task',
		PROJECT: 'project',
		MESSAGE: 'message'
	}
}

module.exports = NotificationModel; 